# coding=utf-8

from web import form

from form import Number

partner_form = form.Form(
        form.Textbox('name'
            , description = '名称'
            , required = 'required'
            , message = '请输入商家名称；'
            , class_ = 'txt'
            , tabindex = 1),
        form.Textbox('domain'
            , description = '域名'
            , required = 'required'
            , message = '请输入商家域名'
            , class_ = 'txt'
            , tabindex = 2),
        form.Textbox('spread_url'
            , description = '推广链接模板'
            , required = 'required'
            , message = '请输入商家的推广链接模板'
            , class_ = 'txt'
            , tabindex = 3),
        form.Hidden('logo'),
        form.Hidden('logo_url'),
        Number('sort'
            , description = '排序值'
            , required = 'required'
            , message = '请输入排序值'
            , class_ = 'txt'
            , tabindex = 4),
        form.Button('submit'
            , html = u'添加合作商家'
            , class_ = 'btn'
            , tabindex = 5))
